package com.gc.server.vo.down;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;


import com.gc.server.entity.SchoolEntity;
import com.gc.server.vo.SchoolVo;


/**
 * 学校实体
 * 表名 school
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Oct 22 19:28:49 CST 2020
 */
@Data
public class SchoolDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

    //
    @ExcelProperty("")
    private Long id;

    //学校名称
    @ExcelProperty("学校编号")
    private String code;

    //学校名称
    @ExcelProperty("学校名称")
    private String name;

    //省
    @ExcelProperty("省")
    private String province;

    //市
    @ExcelProperty("市")
    private String city;

    //县
    @ExcelProperty("县")
    private String county;

    //详细地址
    @ExcelProperty("详细地址")
    private String detail;

    //备注
    @ExcelProperty("备注")
    private String remark;


    public SchoolDown() {

    }

    public SchoolDown(SchoolVo vo) {
        SchoolEntity entity = vo.getEntity();
        this.setId(entity.getId());
        this.setCode(vo.getSchool().getCode());
        this.setName(entity.getName());

        this.setProvince(entity.getProvince());

        this.setCity(entity.getCity());

        this.setCounty(entity.getCounty());

        this.setDetail(entity.getDetail());

        this.setRemark(entity.getRemark());

    }


}
